package com.yx.shop.service.admin;

import com.yx.shop.entitly.User;
import com.yx.shop.entitly.pojo.ResponseResult;

import java.util.List;

/**
 * @Classname AdminUserService
 * @Description TODO:
 * @Date 2021/05/10 15:29
 * @Created by yx
 */
public interface AdminUserService {
    /**
     * @Author:yx
     * @return com.yx.shop.entitly.User
     * @Date 2021/05/10 15:34
     * @param username
     * @param password
     * @Description:管理员登录
     **/
    User login(String username, String password);

    /**
     * @Author:yx
     * @return com.yx.shop.entitly.pojo.ResponseResult<com.yx.shop.entitly.User>
     * @Date 2021/05/10 15:59
     * @param username
     * @param password
     * @Description:带结果提示的验证登录
     **/
    ResponseResult<User> loginForAdmin(String username, String password);

    /**
     * @Author:yx
     * @return java.util.List<com.yx.shop.entitly.User>
     * @Date 2021/05/10 15:59
     * @param username
     * @param gender
     * @Description:用户表综合查询(条件)
     **/
    List<User> searchByKey(String username, String gender);

    /**
     * @Author:yx
     * @return boolean
     * @Date 2021/05/10 16:33
     * @param uid
     * @Description:根据uid删除用户
     **/
    boolean deleteUserByUid(Integer uid);
}
